//
//  UICollectionView+backImageView.m
//  ContinueEducation
//
//  Created by 迟国强 on 2018/8/2.
//  Copyright © 2018年 CE. All rights reserved.
//

#import "UICollectionView+backImageView.h"

@implementation UICollectionView (backImageView)
-(void)setNoDataImage:(BOOL)noDataImage
{
    self.tipView.hidden = noDataImage;
}

-(BOOL)noDataImage
{
    return self.tipView.hidden;
}
- (UIView *)tipView
{
    UIView *tipView = objc_getAssociatedObject(self, "TipView");
    if (!tipView) {
        tipView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_W, 60)];
        [self addSubview:tipView];
        objc_setAssociatedObject(self, "TipView", tipView, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
        
    }
    return tipView;
}
- (void)clicked{
    [[NSNotificationCenter defaultCenter] postNotificationName:@"OPENPLAINNOTIFICATION" object:nil];
}

#pragma 通用无数据

@end
